Optimal. Leaf size=91 \[ \frac {a \tan ^{-1}\left (\frac {b+a \tan \left (\frac {1}{2} \left (c+d x^2\right )\right )}{\sqrt {a^2-b^2}}\right )}{\left (a^2-b^2\right )^{3/2} d}+\frac {b \cos \left (c+d x^2\right )}{2 \left (a^2-b^2\right ) d \left (a+b \sin \left (c+d x^2\right )\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {3460, 2743, 12,
2739, 632, 210} \begin {gather*} \frac {a \text {ArcTan}\left (\frac {a \tan \left (\frac {1}{2} \left (c+d x^2\right )\right )+b}{\sqrt {a^2-b^2}}\right )}{d \left (a^2-b^2\right )^{3/2}}+\frac {b \cos \left (c+d x^2\right )}{2 d \left (a^2-b^2\right ) \left (a+b \sin \left (c+d x^2\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 210
Rule 632
Rule 2739
Rule 2743
Rule 3460
Rubi steps
\begin {align*} \int \frac {x}{\left (a+b \sin \left (c+d x^2\right )\right )^2} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {1}{(a+b \sin (c+d x))^2} \, dx,x,x^2\right )\\ &=\frac {b \cos \left (c+d x^2\right )}{2 \left (a^2-b^2\right ) d \left (a+b \sin \left (c+d x^2\right )\right )}+\frac {\text {Subst}\left (\int \frac {a}{a+b \sin (c+d x)} \, dx,x,x^2\right )}{2 \left (a^2-b^2\right )}\\ &=\frac {b \cos \left (c+d x^2\right )}{2 \left (a^2-b^2\right ) d \left (a+b \sin \left (c+d x^2\right )\right )}+\frac {a \text {Subst}\left (\int \frac {1}{a+b \sin (c+d x)} \, dx,x,x^2\right )}{2 \left (a^2-b^2\right )}\\ &=\frac {b \cos \left (c+d x^2\right )}{2 \left (a^2-b^2\right ) d \left (a+b \sin \left (c+d x^2\right )\right )}+\frac {a \text {Subst}\left (\int \frac {1}{a+2 b x+a x^2} \, dx,x,\tan \left (\frac {1}{2} \left (c+d x^2\right )\right )\right )}{\left (a^2-b^2\right ) d}\\ &=\frac {b \cos \left (c+d x^2\right )}{2 \left (a^2-b^2\right ) d \left (a+b \sin \left (c+d x^2\right )\right )}-\frac {(2 a) \text {Subst}\left (\int \frac {1}{-4 \left (a^2-b^2\right )-x^2} \, dx,x,2 b+2 a \tan \left (\frac {1}{2} \left (c+d x^2\right )\right )\right )}{\left (a^2-b^2\right ) d}\\ &=\frac {a \tan ^{-1}\left (\frac {b+a \tan \left (\frac {1}{2} \left (c+d x^2\right )\right )}{\sqrt {a^2-b^2}}\right )}{\left (a^2-b^2\right )^{3/2} d}+\frac {b \cos \left (c+d x^2\right )}{2 \left (a^2-b^2\right ) d \left (a+b \sin \left (c+d x^2\right )\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 91, normalized size = 1.00 \begin {gather*} \frac {\frac {2 a \tan ^{-1}\left (\frac {b+a \tan \left (\frac {1}{2} \left (c+d x^2\right )\right )}{\sqrt {a^2-b^2}}\right )}{\sqrt {a^2-b^2}}+\frac {b \cos \left (c+d x^2\right )}{a+b \sin \left (c+d x^2\right )}}{2 (a-b) (a+b) d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 131, normalized size = 1.44
method | result | size |
derivativedivides | \(\frac {\frac {\frac {2 b^{2} \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )}{a \left (a^{2}-b^{2}\right )}+\frac {2 b}{a^{2}-b^{2}}}{a \left (\tan ^{2}\left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )\right )+2 b \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )+a}+\frac {2 a \arctan \left (\frac {2 a \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )+2 b}{2 \sqrt {a^{2}-b^{2}}}\right )}{\left (a^{2}-b^{2}\right )^{\frac {3}{2}}}}{2 d}\) | \(131\) |
default | \(\frac {\frac {\frac {2 b^{2} \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )}{a \left (a^{2}-b^{2}\right )}+\frac {2 b}{a^{2}-b^{2}}}{a \left (\tan ^{2}\left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )\right )+2 b \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )+a}+\frac {2 a \arctan \left (\frac {2 a \tan \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )+2 b}{2 \sqrt {a^{2}-b^{2}}}\right )}{\left (a^{2}-b^{2}\right )^{\frac {3}{2}}}}{2 d}\) | \(131\) |
risch | \(\frac {i b +a \,{\mathrm e}^{i \left (d \,x^{2}+c \right )}}{\left (a^{2}-b^{2}\right ) d \left (b \,{\mathrm e}^{2 i \left (d \,x^{2}+c \right )}-b +2 i a \,{\mathrm e}^{i \left (d \,x^{2}+c \right )}\right )}-\frac {a \ln \left ({\mathrm e}^{i \left (d \,x^{2}+c \right )}+\frac {i a \sqrt {-a^{2}+b^{2}}-a^{2}+b^{2}}{b \sqrt {-a^{2}+b^{2}}}\right )}{2 \sqrt {-a^{2}+b^{2}}\, \left (a +b \right ) \left (a -b \right ) d}+\frac {a \ln \left ({\mathrm e}^{i \left (d \,x^{2}+c \right )}+\frac {i a \sqrt {-a^{2}+b^{2}}+a^{2}-b^{2}}{b \sqrt {-a^{2}+b^{2}}}\right )}{2 \sqrt {-a^{2}+b^{2}}\, \left (a +b \right ) \left (a -b \right ) d}\) | \(231\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 366, normalized size = 4.02 \begin {gather*} \left [\frac {{\left (a b \sin \left (d x^{2} + c\right ) + a^{2}\right )} \sqrt {-a^{2} + b^{2}} \log \left (-\frac {{\left (2 \, a^{2} - b^{2}\right )} \cos \left (d x^{2} + c\right )^{2} - 2 \, a b \sin \left (d x^{2} + c\right ) - a^{2} - b^{2} - 2 \, {\left (a \cos \left (d x^{2} + c\right ) \sin \left (d x^{2} + c\right ) + b \cos \left (d x^{2} + c\right )\right )} \sqrt {-a^{2} + b^{2}}}{b^{2} \cos \left (d x^{2} + c\right )^{2} - 2 \, a b \sin \left (d x^{2} + c\right ) - a^{2} - b^{2}}\right ) + 2 \, {\left (a^{2} b - b^{3}\right )} \cos \left (d x^{2} + c\right )}{4 \, {\left ({\left (a^{4} b - 2 \, a^{2} b^{3} + b^{5}\right )} d \sin \left (d x^{2} + c\right ) + {\left (a^{5} - 2 \, a^{3} b^{2} + a b^{4}\right )} d\right )}}, -\frac {{\left (a b \sin \left (d x^{2} + c\right ) + a^{2}\right )} \sqrt {a^{2} - b^{2}} \arctan \left (-\frac {a \sin \left (d x^{2} + c\right ) + b}{\sqrt {a^{2} - b^{2}} \cos \left (d x^{2} + c\right )}\right ) - {\left (a^{2} b - b^{3}\right )} \cos \left (d x^{2} + c\right )}{2 \, {\left ({\left (a^{4} b - 2 \, a^{2} b^{3} + b^{5}\right )} d \sin \left (d x^{2} + c\right ) + {\left (a^{5} - 2 \, a^{3} b^{2} + a b^{4}\right )} d\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x}{\left (a + b \sin {\left (c + d x^{2} \right )}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.35, size = 144, normalized size = 1.58 \begin {gather*} \frac {{\left (\pi \left \lfloor \frac {d x^{2} + c}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (a\right ) + \arctan \left (\frac {a \tan \left (\frac {1}{2} \, d x^{2} + \frac {1}{2} \, c\right ) + b}{\sqrt {a^{2} - b^{2}}}\right )\right )} a}{{\left (a^{2} d - b^{2} d\right )} \sqrt {a^{2} - b^{2}}} + \frac {b^{2} \tan \left (\frac {1}{2} \, d x^{2} + \frac {1}{2} \, c\right ) + a b}{{\left (a^{3} d - a b^{2} d\right )} {\left (a \tan \left (\frac {1}{2} \, d x^{2} + \frac {1}{2} \, c\right )^{2} + 2 \, b \tan \left (\frac {1}{2} \, d x^{2} + \frac {1}{2} \, c\right ) + a\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.10, size = 178, normalized size = 1.96 \begin {gather*} \frac {\frac {b}{a^2-b^2}+\frac {b^2\,\mathrm {tan}\left (\frac {d\,x^2}{2}+\frac {c}{2}\right )}{a\,\left (a^2-b^2\right )}}{d\,\left (a\,{\mathrm {tan}\left (\frac {d\,x^2}{2}+\frac {c}{2}\right )}^2+2\,b\,\mathrm {tan}\left (\frac {d\,x^2}{2}+\frac {c}{2}\right )+a\right )}+\frac {a\,\mathrm {atan}\left (\frac {\left (a^2-b^2\right )\,\left (\frac {a^2\,\mathrm {tan}\left (\frac {d\,x^2}{2}+\frac {c}{2}\right )}{{\left (a+b\right )}^{3/2}\,{\left (a-b\right )}^{3/2}}+\frac {a\,\left (2\,a^2\,b-2\,b^3\right )}{2\,{\left (a+b\right )}^{3/2}\,\left (a^2-b^2\right )\,{\left (a-b\right )}^{3/2}}\right )}{a}\right )}{d\,{\left (a+b\right )}^{3/2}\,{\left (a-b\right )}^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________